package com.itheima.service.impl;

import com.itheima.service.FileService;
import com.itheima.utils.MyAliYunOssUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public class FileServiceImpl1 implements FileService {

    @Autowired
    private MyAliYunOssUtils myAliYunOssUtils;
    @Override
    public String saveFile(MultipartFile image) {
        String s = myAliYunOssUtils.uploadToOss(image);

        return s;
    }
}
